@extends('admin.layout')
@section('content')
<div class="content-wrapper" style="min-height: 946px;">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                企业管理
                <small>详情</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i>主页</a></li>
                <li><a href="#">企业管理</a></li>
                <li class="active">详情</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!-- left column -->
                <div class="col-md-6">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">企业详情页</h3>
                        </div><!-- /.box-header -->
                        @if (session('info'))
						    <div class="alert alert-danger alert-dismissable">
			                    <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
			                    <h4><i class="icon fa fa-ban"></i> 提示!</h4>
			                    <p>{{ session('info') }}</p>
			                  </div>
						@endif
                        <!-- form start -->
                        <form role="form" action="{{ asset('/admin/user/update') }}" method="post">
                        {{ csrf_field() }}
                        <input type="hidden" name='id' value="{{ $data -> id }}">
                            <div class="box-body">
                                <div class="form-group">
                                    <label for="exampleInputName">企业名</label>
                                    <input type="text" value="{{ $data -> name }}" name='name' placeholder="请输入6-18位企业名" id="exampleInputName" class="form-control">
                                </div>
                                
                                <div class="form-group">
                                    <label for="exampleInputEmail">邮箱</label>
                                    <input name='email' value="{{ $data -> email }}" type="email" placeholder="请输入邮箱地址" id="exampleInputEmail" class="form-control">
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputEmail">状态</label>
                                    <select form='frm' name='status' class="form-control">
                                        <option value="0" {{ $data -> status?'':'selected' }}>启用</option>
                                        <option value="1" {{ $data -> status?'selected':'' }}>禁用</option>
                                    </select>
                                    
                                </div>
                            </div><!-- /.box-body -->

                            <div class="box-footer">
                                <button class="btn btn-primary" type="submit">更新</button>
                                <button class="btn btn-default" type="reset">重置</button>
                            </div>
                        </form>
                    </div><!-- /.box -->

                </div><!--/.col (left) -->
            </div>   <!-- /.row -->
        </section><!-- /.content -->
    </div>
@endsection